<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<#include "/common/common_head.ftl">
</head>
<style>
	.tooltip{
		width:500px;
	}
	.tooltip-inner{
		max-width:490px;
		text-align:left;
	}
</style>
<body style="padding-top: 0px;">
	<!-- <!-- 主内容区域 S -->
 	<div class="" id="mainBoard">
		<!-- 导航路径 S -->
		<ol class="breadcrumb">
		  <li><a href="#">问卷调查</a></li>
		  <li class="active">问卷调查列表</li>
		</ol>
		<!-- 导航路径 E -->

	   	<!-- 标题区 S -->
		<h2 class="sub-header">问卷调查列表</h2>
		<!-- 标题区 E -->

        <div class="container-fluid">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="edit.do?page=${currentPage}">添加</a></li>
          </ul>
        </div>
        <div class="table-responsive">
         <table class="table table-striped" id="categoryTable">
          	<thead>
                <tr>
				  <th></th>
                  <th>标题</th>
                  <th>规则说明</th>
                  <th>状态</th>
                </tr>
             </thead>
             <tbody>
             <#if lists ??>
              <#list lists as entity >
                <tr>
					<td>
						${entity_index+1?if_exists}
					</td>
	              	<td>
						${entity.title?if_exists}
					</td>
					<td data-toggle="tooltip" data-placement="bottom">
						${entity.discribe?if_exists}
					</td>
					<td><#if entity.state == 1>可用</#if>
						<#if entity.state == 2>停用</#if>
					</td>
	              	<td>
		              	<a href="edit.do?id=${entity.id}&page=${currentPage}">Edit</a>,
		              	<a href="del.do?id=${entity.id}&page=${currentPage}" onclick="if(confirm('确定删除吗?')==false) return false;">Del</a>,
	              		<a href="../question/list.do?questionnaireId=${entity.id}">View Question</a>,<a href="createHtml.do?id=${entity.id}">Create Html</a>
	              	</td>
              	</tr>
              </#list>
             </#if>
             </tbody>
         </table>
       </div>
       <#include "/common/page.ftl">
    </div>
    <script>
	   $(function () { $("[data-toggle='tooltip']").tooltip(); });
	</script>
</body>
</html>